//
//  SSSSystemMessageCell.m
//  SSSAllRollAgency
//
//  Created by xnxin on 2017/3/16.
//  Copyright (c) 2017 Darker. All rights reserved.
//

#import "SSSSystemMessageCell.h"
#import "SSSSystemMessageCellModel.h"
#import "NSDateAddition.h"

@interface SSSSystemMessageCell()

@property(readonly) SSSSystemMessageCellModel *model;
@end

@implementation SSSSystemMessageCell
@dynamic model;

- (void)awakeFromNib {
    [super awakeFromNib];

    [_grayline removeFromSuperview];
    self.layer.cornerRadius = 5;
}
- (void)setModel:(SSSSystemMessageCellModel*)model {
    _model = model;

    self.dateLabel.text = [model.date xhstringWithFormat:@"yyyy-MM-dd HH:mm"];
    self.contentLabel.text = model.content;
}

@end
